import { deleteRequest, getRequest, postRequest } from '@/utils/request'
export const deleteDisLike = data => deleteRequest('/app/v1_0/article/dislikes/' + data) // 文章取消不喜欢
export const getArticles = data => getRequest('/app/v1_1/articles', data) // 获取文章列表
export const deleteLike = data => deleteRequest('/app/v1_0/article/likings/' + data) // 文章取消点赞
export const getArticle = data => getRequest('/app/v1_0/articles/' + data.id) // 获取文章详情
export const addDisLike = data => postRequest('/app/v1_0/article/dislikes', data) // 不喜欢文章
export const dislikes = data => postRequest('/app/v1_0/article/dislikes', data) // 对文章不感兴趣
export const addLike = data => postRequest('/app/v1_0/article/likings', data) // 文章点赞
export const report = data => postRequest('/app/v1_0/article/reports', data) // 举报文章
